//
//  AXMyEditAddressNameCell.m
//  AnXin100
//
//  Created by 天质弘耕 on 2018/11/14.
//  Copyright © 2018 tzhg. All rights reserved.
//

#import "AXMyEditAddressNameCell.h"
#import "ZXCategories.h"
#import "UIView+SDAutoLayout.h"

@implementation AXMyEditAddressNameCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self creatView];
        [self setlayout];
    }
    return self;
}

- (void)creatView {
    
    self.nameLabel = [[UILabel alloc]init];
    self.nameLabel.textColor = COLOR_DIV;
    self.nameLabel.font = FONT_FOURTEEN;
    [self.contentView addSubview:self.nameLabel];
    
    self.inputTextField = [[UITextField alloc]init];
    self.inputTextField.textColor = COLOR_DIV;
    self.inputTextField.textAlignment = NSTextAlignmentLeft;
    self.inputTextField.font = FONT_FOURTEEN;
    self.inputTextField.borderStyle = UITextBorderStyleNone;
    self.inputTextField.enabled = YES;
    /** 设置键盘样式 */
    self.inputTextField.keyboardType = UIKeyboardTypeDefault;
    [self.contentView addSubview:self.inputTextField];
    
    
}

- (void)setlayout {
    
    self.nameLabel.sd_layout
    .leftSpaceToView(self.contentView, 10)
    .topSpaceToView(self.contentView, 7)
    .widthIs(80)
    .heightIs(30);
    
    self.inputTextField.sd_layout
    .rightSpaceToView(self.contentView, 10)
    .topSpaceToView(self.contentView, 7)
    .widthIs(SCREEN_WIDTH-30-120)
    .heightIs(30);
    
    
    
}

@end

